class StringUtil {
  StringUtil._();

  /// 获取非空字符串
  static String? getString(dynamic value) {
    if ((value is String) && value.isNotEmpty) {
      return value;
    } else if (value is num) {
      return value.toString();
    }
    return null;
  }
}
